#ifndef LOADWINDOW_H
#define LOADWINDOW_H

#include <QDialog>
#include <QDir>
#include "CPatient.h"
#include "mainwindow.h"

class QPushButton;
class QTextEdit;
class QStringList;
class QTableWidget;
class QComboBox;
class QDir;

class CLoadWindow:public QWidget
{
    Q_OBJECT
public:
    CLoadWindow();
    CPatient patient;
private slots:
    void browse();
    void openFileOfItem(int , int );
    void makeFile ();
private:
    //QList *files;
    QComboBox *createComboBox(const QString &text = QString());
    void showFiles(const QStringList &files);
    void createFilesTable();
    QPushButton *BOk, *BSelDir, *patientFile;
    QTextEdit *EPath;
    QComboBox *directoryComboBox;
    QDir currentDir;
    QStringList *files;
    QTableWidget *filesTable;
    CMainWindow *cellwindow;
};

#endif // LOADWINDOW_H
